<div id="steps">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'anggota-form',
	'enableAjaxValidation'=>false,
)); ?>
<fieldset class="step">

<p>
Penghapusan Anggota <b><?php echo $anggota->NAMA; ?></b> 
<br>dengan rincian sebagai berikut : 
</p>

<p>
<label for="tabungan">Penarikan Tabungan</label>
<input size="50" maxlength="50" name="tabungan" id="tabungan" type="text" value="<?php if ($tabungan != null)echo "Rp ".number_format($tabungan->TOTAL_TABUNGAN,2,",","."); else echo "Rp ".number_format(0,2,",","."); ?>">
</p>

<p>
<label for="pinjaman">Sisa Pinjaman</label>
<input size="50" maxlength="50" name="pinjaman" id="pinjaman" type="text" value="
<?php if($pinjaman != null){
	$jumlah = 0;
	foreach ($pinjaman as $detail){
		$jumlah = $jumlah+$detail->SALDO;
	}
	echo "Rp ".number_format($jumlah,2,",",".");
}
else echo "Rp ".number_format(0,2,",",".");
?>">
</p>

<p class="submit">
		<button id="registerButton" type="submit">Hapus</button>&nbsp;
		<button id="registerButton" type="button" onclick="window.location.href='<?php echo Yii::app()->createUrl("Anggota");?>'">Kembali</button>
	</p>

</fieldset>
<?php $this->endWidget(); ?>
</div>